package com.bzkj.basicinfo.mapper;

import com.bzkj.basicinfo.domain.ncc.dto.NccBasicMaterialstockDto;
import com.bzkj.basicinfo.domain.ncc.NccBasicMaterialstock;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author wl
 * @description 针对表【ncc_basic_materialstock(ncc物料库存信息)】的数据库操作Mapper
 * @createDate 2024-12-11 14:51:20
 * @Entity com.bzkj.basicinfo.domain.ncc.NccBasicMaterialstock
 */
public interface NccBasicMaterialstockMapper
{
    /**
     * 条件查询物料库存信息
     * @Author wangzhichao
     * @Date 2024/12/11 15:08:54
     * @Param dto
     */
    List<NccBasicMaterialstock> findNccBasicMaterialstockData(NccBasicMaterialstockDto dto);

    /**
     * 根据pkmaterialstock修改ncc物料库存仓库信息
     * @Author wangzhichao
     * @Date 2024/12/11 15:19:36
     * @Param entity
     */
    int nccBasicMaterialstockUpdate(NccBasicMaterialstock entity);

    /**
     * 新增ncc物料库存信息
     * @Author wangzhichao
     * @Date 2024/12/11 15:32:14
     * @Param entity
     */
    int nccBaiscMaterialstockSave(NccBasicMaterialstock entity);

    /**
     * 查询已经存在的物料主键信息
     * @param pkMeasdoc 主键集合
     * @return 主键集合
     */
    Set<String> findNccBasicpkMeasdocSetList(@Param("pkMeasdoc") List<String> pkMeasdoc);

    /**
     * 插入或更新物料库存信息
     * @param nccBasicMaterialstock 物料库存信息
     */
    void insertOrUpdate(NccBasicMaterialstock nccBasicMaterialstock);
}




